<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        function fun1() {
            console.log(11);
            fun2()// 在fun1 里面调用了 fun2 函数 
        }
        fun1()
        function fun2 () {
           console.log(22);
        }



// 函数调用 执行顺序 1 4 2 3   
        function fn1() {
            console.log(111);//1
            fn2()
            console.log('fn1');//4
        }
        function fn2() {
            console.log(222);//2
            console.log('fn2');//3
        }
        fn1()
    </script>
</head>
<body>
    
</body>
</html>